# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tepl
pkgver=4.4.0
pkgrel=0
pkgdesc="Text editor product line"
url="https://wiki.gnome.org/Projects/Tepl"
arch="all !s390x !mips !mips64" # Limited by gtksourceview4
license="GPL-3.0-or-later"
makedepends="amtk-dev glib-dev gtksourceview4-dev gtk+3.0-dev libxml2-dev
	uchardet-dev vala gobject-introspection-dev"
checkdepends="xvfb-run"
options="!check" # fails to find gvfs
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/tepl/${pkgver%.*}/tepl-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-gvfs-metadata
	make
}

check() {
	xvfb-run make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="2050c28f9564034bea7c44d3fa27784ab87503c2db6cf35e6389c40ca78722b092fbc52df5fdfc85cc1e39a9dc3c0e30fa7993fb63411b0240f3a6ac9607c282  tepl-4.4.0.tar.xz"
